import javax.lang.model.util.SimpleAnnotationValueVisitor6;
import java.util.Scanner;

public class Test_9 {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        //总成绩
        double sum = 0;
        //记录最高分
        double max=0;

        for(int i=0;i<5;i++){
            System.out.println("请输入第"+(i+1)+"同学的成绩");
            double score = scanner.nextDouble();
            System.out.println("score=="+score);
            //计算总成绩
            sum+=score;
            //记录最大的值
            if(score>max){
                max=score;
            }
        }
        System.out.println("sum="+sum+",axg="+(sum/5)+",max="+max);

        scanner.close();



    }
}
